﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly="Inovout.Kuajing.Store"
				        namespace="Inovout.Kuajing.Store.Models">

  <class name="LinkedStore" table="Store_LinkedStore">
    <id name="Id" access="field.camelcase"
        column="LinkedStoreId" type="Int32">
      <generator class="native" />
    </id>

    <property name="Name" type="String"></property>
    <many-to-one name="Location" column="LocationId" class="Inovout.Locations.Location" ></many-to-one>
    <property name="Address" type="String"></property>
    <property name="Type" type="Int32"></property>
    <property name="IsApproved" type="Boolean"></property>
    <many-to-one name="Consigner" column="ConsignerId" class="Inovout.Kuajing.Models.Consigner" ></many-to-one>

    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </class>
</hibernate-mapping>

